package com.chennan.book.domain.service;

import com.chennan.book.domain.model.Book;
import com.chennan.book.domain.repository.BookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chennan
 * @createTime 2022年03月02日 17:27:00
 */
@Service
public class TransactionImpl extends AbstractTransaction{

    @Autowired
    private BookMapper book;


    @Override
    public void test1() {
        Book book1 = new Book();
        book1.setLink("1231");
        book1.setCommentnum(2);
        book1.setPrice(2342.00);
        book1.setType(22);
        book1.setTitle("1231");
        book.insertBook(book1);

        int uu=1/0;
    }
}
